Skip to content

Conversation

JuanCarlos3
Copy link

@JuanCarlos3 JuanCarlos3 commented Oct 7, 2025

Removed @appender on the following functions:

pandas.io.stata.StataReader.read
pandas.io.stata.read_stata

@JuanCarlos3 JuanCarlos3 closed this Oct 7, 2025
@JuanCarlos3 JuanCarlos3 reopened this Oct 7, 2025
@JuanCarlos3 JuanCarlos3 closed this Oct 8, 2025
@JuanCarlos3 JuanCarlos3 reopened this Oct 8, 2025
size = self._chunksize
return self.read(nrows=size)

@Appender(_read_method_doc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can _read_method_doc (and any associated variables) be removed after this change?

Copy link
Author

@JuanCarlos3 JuanCarlos3 Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Matthew, yes the _read_method_doc can be removed. Should I remove it in this PR?



@set_module("pandas")
@Appender(_read_stata_doc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can _read_stata_doc (and any associated variables) be removed after this change?

Copy link
Author

@JuanCarlos3 JuanCarlos3 Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Matthew, yes the _read_stata_doc and _iterator_params can be removed. Should I remove it in this PR?

@mroeschke mroeschke added the Docs label Oct 8, 2025
@JuanCarlos3
Copy link
Author

JuanCarlos3 commented Oct 9, 2025

Hi Matthew, thanks for reviewing my PR! You’re right—some of those strings can be removed. I initially kept them because I hadn’t seen other PRs deleting them, and the original issue comments mentioned a broader cleanup effort after all decorators were removed. But I’m happy to remove them as part of this PR if that’s preferred.

I had a couple of questions I was hoping you could answer:

  1. Since this is my first contribution, I kept the PR intentionally small. Please let me know if it’s too minor and whether you’d prefer that I also remove the @doc decorator from stata.py.

  2. I noticed a few CI/CD checks are failing. From what I can tell in the logs, it might be related to reopening the PR multiple times, which could have caused an artifact ID conflict in the pipeline. Could you please confirm if there’s anything in my code that needs to be updated, or advise on the standard approach for resolving this type of issue?

@mroeschke
Copy link
Member

But I’m happy to remove them as part of this PR if that’s preferred

Yup go ahead and perform those cleanups in this PR. You can address the @doc cleanups in a separate PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: Replace @Appender, @Substitution, @doc with inlined docstrings
2 participants